* {
  margin: 0;
  padding: 0;
  user-select: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  padding-top: 20px;
  background-color: #F4F4F4;
}

.shoppingCart {
  cursor: pointer;
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  right: 10px;
  top: calc(50vh - 25px);
  background-color: red;
  line-height: 50px;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  z-index: 5000;
  box-shadow: 0 0 2px 2px red;
}

.all {
  width: 990px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.all > div:nth-child(5n) {
  margin-right: 0;
}

.allIn {
  display: none;
  position: absolute;
  z-index: 3000;
  padding: 20px;
  box-sizing: border-box;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  background-color: #ccc;
  left: 0;
  top: 0;
  opacity: 0;
  transition: 0.5s;
  box-shadow: 0 0 5px 5px #ccc;
}

.allIn > div:nth-child(7n) {
  margin-right: 0;
}

@keyframes allIn {
  form {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes allOff {
  form {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.item {
  position: relative;
  cursor: auto;
  background-color: white;
  width: 190px;
  height: 266px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  box-sizing: border-box;
  padding: 20px 10px;
  margin: 0 10px 10px 0;
  transition: 0.5s;
}

.item .item-img {
  position: relative;
  width: 120px;
  height: 120px;
}

.item .item-img:hover::after {
  position: absolute;
  content: "";
  z-index: 100;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.item .item-img > img {
  position: absolute;
  z-index: 100;
  left: 0;
  top: 0;
  transition: 0.5s;
}

@keyframes imgContOut {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}

@keyframes imgContIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.item .item-title {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item .item-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item .item-footer > svg {
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.item .item-footer > svg:hover > path {
  fill: red;
}
